package com.ruibang.glass.quality.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.ruibang.glass.common.utils.validateannotation.NotBlank;
import com.teaming.cloud.framework2.common.pojo.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.time.LocalDate;
import java.util.List;

/**
 * <p>
 * 8D报告
 * </p>
 *
 * @author songJinKang
 * @since 2024-05-21
 */

@ApiModel(value = "8D报告")
@TableName("g_quality_eight_d_report")
@Data
public class EightDReport extends BaseEntity {
    @ApiModelProperty(value = "主键ID")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;
    @ApiModelProperty(value = "标题")
    @NotBlank(message = "标题不可为空")
    private String title;
    @ApiModelProperty(value = "客诉单位")
    @NotBlank(message = "客诉单位不可为空")
    private String complaintUnit;
    @ApiModelProperty(value = "产品型号")
    @NotBlank(message = "产品型号不可为空")
    private String model;
    @ApiModelProperty(value = "客诉时间")
    @NotNull(message = "客诉时间不可为空")
    private LocalDate time;
    @ApiModelProperty(value = "客诉内容")
    @NotBlank(message = "客诉内容不可为空")
    private String content;
    @ApiModelProperty(value = "条码编号")
    @NotBlank(message = "条码编号不可为空")
    private String barcodeCode;
    @ApiModelProperty(value = "备注")
    private String remark;
    @TableLogic
    private String isDelete;
    @TableField(exist = false)
    @ApiModelProperty("文件ID")
    @NotEmpty(message = "文件不可为空")
    private List<String> fileIds;
}
